/**============================================================================
 Confidential Information - Limited distribution to authorized persons only.
 This software is protected as an unpublished work under the U.S. Copyright
 Act of 1976.

 Copyright (c) 2011, BluePhoenix Solutions, Inc. All rights reserved.
 ----------------------------------------------------------------------------
 file......: NotepadTableModel.java
 Author....: Vyacheslav Kovalyov
 Created...: 23.10.11

 Description:

 ============================================================================*/
package ru.monyag.pred.swing.ui.notepad;

import ru.monyag.pred.core.notepad.Note;
import ru.monyag.pred.swing.ui.table.BaseTableModel;
import ru.monyag.pred.swing.ui.table.IColumnMapper;

import static ru.monyag.pred.swing.ui.notepad.NotepadTableModelInfo.getInstance;

/**
 * @author Vyacheslav Kovalyov
 * @version 1.0
 */
public class NotepadTableModel extends BaseTableModel<Note> {

    public NotepadTableModel() {
        super(getInstance());
    }

    @Override
    public boolean isCellEditable(int row, int column) {
        return false;
    }

    @Override
    protected IColumnMapper<Note> getColumnMapper() {
        return new NotepadColumnMapper();
    }
}